package com.healthcarex.hip.saas.security.model;

import com.healthcarex.hip.saas.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author chenpan
 * @ClassName: SysRole
 * description:
 * @date 2018-04-02 14:24
 */
@Table(name = "HP_SYS_ROLE")
@Data
@ApiModel(value = "SysRole" , description = "角色信息")
public class SysRole extends BaseModel implements Serializable {

    @ApiModelProperty("角色编码")
    @Column(name = "ROLE_CODE")
    @NotBlank
    private String roleCode;

    @ApiModelProperty("角色名称")
    @Column(name = "ROLE_NAME")
    private String roleName;

    @ApiModelProperty("描述")
    @Column(name = "DESCRIPTION")
    private String description;


}
